﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsFormsApplication1
{
    class Planet
    {
        Vector position;
        Vector velocity;
        Vector force;
        Vector spin;
        double mass;
        const double G = 6.67E-11;

        public Vector field(Vector V1)
        {
            Vector displacement = new Vector();
            displacement = V1 - this.position;
            return (this.mass*G/(Vector.dot(V1-this.position))*displacement.unit);
        }

        public Planet(Vector positioni, Vector velocityi, Vector forcei, Vector spini)
        {
            position = positioni;
            velocity = velocityi;
            force = forcei;
            spin = spini;
        }
    }
}
